package packing;

import java.util.Comparator;

import packing.State;

public class StateComparator implements Comparator<State> {

	@Override
	public int compare(State s1, State s2) {
		s1.evaluate();
		s2.evaluate();
		if(s1.getEvaluationScore() < s2.getEvaluationScore())	
			return -1;
		else
			return 1;
	}
	

}
